package com.edu.zhku.wms.service;

import com.edu.zhku.wms.dto.ModifyPasswordRequest;
import com.edu.zhku.wms.dto.UserQueryDto;
import com.edu.zhku.wms.pojo.User;
import com.github.pagehelper.PageInfo;

import javax.servlet.http.HttpServletRequest;

public interface UserService {

    User selectByPrimaryKey(Integer id);

    PageInfo<User> list(UserQueryDto userQueryDto, Integer pageNum, Integer pageSize);

    int addUser(User user);

    int deleteUserByPrimaryKey(HttpServletRequest request, Integer id);

    int updateUser(HttpServletRequest request, User user);

    int modifyPassword(ModifyPasswordRequest modifyPasswordRequest);

    boolean canBeBound(Integer id);
}
